package cn.edu.nankai.bookstore.domain.po;

import java.io.Serializable;

public class Item implements Serializable {


    private int orderId;
    private int bookId;
    private int amount;
    private double discount;
    private double total;
    private double discountTotal;

    public Item(int orderId, int bookId, int amount, double discount, double total, double discountTotal) {
        this.orderId = orderId;
        this.bookId = bookId;
        this.amount = amount;
        this.discount = discount;
        this.total = total;
        this.discountTotal = discountTotal;
    }

    public Item(int bookId, int amount, double discount) {
        this.bookId = bookId;
        this.amount = amount;
        this.discount = discount;
    }

    public Item(int orderId, int bookId) {
        this.orderId = orderId;
        this.bookId = bookId;
    }

    public Item() {
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public double getDiscountTotal() {
        return discountTotal;
    }

    public void setDiscountTotal(double discountTotal) {
        this.discountTotal = discountTotal;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "Item{" +
                "orderId=" + orderId +
                ", bookId=" + bookId +
                ", amount=" + amount +
                ", discount=" + discount +
                ", total=" + total +
                ", discountTotal=" + discountTotal +
                '}';
    }
}